﻿using battlenet.wow.rt.domain.objects;
using battlenet.wow.rt.sdk.data.dto;
using battlenet.wow.rt.sdk.utility;

namespace battlenet.wow.rt.sdk.objects.mapper
{
    internal class ItemSocketMapper : Remapper<ItemSocket>
    {
        public override void RegisterMappers()
        {
            Register(typeof(SocketInfo), input => Map(input as SocketInfo));
        }

        internal ItemSocket Map(SocketInfo info)
        {
            var socket = new ItemSocket
            {
                Type = info.Type
            };
            return socket;
        }
    }
}